<div class="box white_bg">
<?if (isset($this->viewParams['errorMessage'])):?>
<div class="errorMessage">
	<?=$this->viewParams['errorMessage'] ?>
</div>
<?endif ?>

<?if (isset($this->viewParams['nodeTypes'])):?>
<table width="90%">
<tr> 
<td width="20%">
Type 
</td>
<td width="50%">
Operations
</td>
</tr>
	<?foreach ($this->viewParams['nodeTypes'] as $nodeType) :?>
	<tr>
	<td> <?=$nodeType['type'] ?></td>
	<td> 
	 	<a href="<?=$this->hvnUrl(array('module' => 'node',
 	                                'controller' => 'master',
 	                                'action' => 'edit-node-type') ,
 	                                'nocontroller');?>?type=<?=$nodeType['type'] ?>" > Edit </a>
	
	</td>
	</tr>
	<?endforeach ?>
<?endif?>
</table>
<div>
	<a href="<?=$this->hvnUrl(array('module' => 'node',
 	                                'controller' => 'master',
 	                                'action' => 'new-node-type') ,
 	                                'nocontroller');?>" > Create a new node type</a>
	
</div>
</div>